﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace VSWClient.Pages
{
	public class StripStatusConverter : IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			if ((string)value == "-1")
				return "abnormal";
			else if ((string)value == "4")
				return "finished";
			else if ((string)value == "3")
				return "producing";
			else if ((string)value == "2")
				return "loaded";
			else if ((string)value == "1")
				return "scaned";
			else if ((string)value == "0")
				return "created";
			else
				return (string)value;
		}

		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}
